/*
 * @Author: humengchuan 531537052@qq.com
 * @Date: 2024-12-17 22:07:11
 * @LastEditors: humengchuan 531537052@qq.com
 * @LastEditTime: 2024-12-17 22:11:54
 * @FilePath: \project-my\next-learn-app\utils\rem.ts
 * @Description: 
 */
export const remFunction = () => {
    window.addEventListener('resize', () => {
      document.documentElement.style.fontSize = document.documentElement.clientWidth / 375 * 100 + 'px'
    })
}